package com.wnxy.sddfp.search.controller;

import com.wnxy.sddfp.search.service.impl.HelloServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ShowController {
    @Autowired
    private HelloServiceImpl helloService;

    @GetMapping("/hello")
    public String hello() {
        return "hello world";
    }


    // 访问入口: 针对来源是 /check 的访问入口， 才会hb资源进行链路流控
    @GetMapping("/check")
    public String check() {
        return helloService.handlerBusiness();
    }

    @GetMapping("/check1")
    public String check1() {
        return helloService.handlerBusiness();
    }
}